//预览excel的接口写在这里，通过exportRequest.js来发axios请求处理
import service from "@/utils/previewExcelRequest"


//支付订单
export const previewOrderExcelAPI = (data,fileName) => {
    return service({
        url: '/pay/admin/adminCommonPay/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//退款订单预览
export const previewRefundExcelAPI = (data,fileName) => {
    return service({
        url: '/pay/admin/adminCommonPay/exportrefundOrders',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//邑支付订单
export const previewYeeOrderExcelAPI = (data,fileName) => {
    return service({
        url: '/pay/admin/dayi/pay/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//转账订单
export const previewTransferOrderExcelAPI = (data,fileName) => {
    return service({
        url: '/pay/admin/dayi/pay/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//优惠券预览
export const previewCouponExcelAPI = (data,fileName) => {
    return service({
        url: '/cdwl-coupon/coupon/list/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//优惠券批量预览
export const previewBatchCouponExcelAPI = (data,fileName) => {
    return service({
        url: '/cdwl-coupon/coupon/list/batchExport',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//分账的预览
export const previewDivideExcelAPI = (data,fileName) => {
    return service({
        url: '/pay/admin/divide/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//电子钱包列表的预览
export const previewWalletOpenAPI = (data,fileName) => {
    return service({
        url: '/pay/wallet/admin/wallet/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}

//电子钱包充值的预览
export const previewWalletRechargeAPI = (data,fileName) => {
    return service({
        url: '/pay/wallet/admin/rechargeRecord/export',
        method: 'POST',
        data,
        fileName,//要导出的文件名
    })
}